import request from '@/utils/request'

// 查询产品订单列表
export function listDentalOrder(query) {
  return request({
    url: '/dentalOrder/dentalOrder/list',
    method: 'get',
    params: query
  })
}

// 查询产品订单详细
export function getDentalOrder(outTradeNo) {
  return request({
    url: '/dentalOrder/dentalOrder/' + outTradeNo,
    method: 'get'
  })
}

// 新增产品订单
export function addDentalOrder(data) {
  return request({
    url: '/dentalOrder/dentalOrder',
    method: 'post',
    data: data
  })
}

// 修改产品订单
export function updateDentalOrder(data) {
  return request({
    url: '/dentalOrder/dentalOrder',
    method: 'put',
    data: data
  })
}

// 删除产品订单
export function delDentalOrder(outTradeNo) {
  return request({
    url: '/dentalOrder/dentalOrder/' + outTradeNo,
    method: 'delete'
  })
}
